﻿<UserControl x:Class="JustPlus.LoginPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="256" d:DesignWidth="512" xmlns:my="clr-namespace:JustPlus">
    <Grid x:Name="grid" MouseLeave="Grid_MouseLeave">
        <Grid.Background>
            <SolidColorBrush />
        </Grid.Background>
        <Label Content="邮箱:" Height="24" HorizontalAlignment="Left" Margin="68,28,0,0" Name="label1" VerticalAlignment="Top" Width="41" />
        <TextBox Height="22" HorizontalAlignment="Left" Margin="121,29,0,0" Name="textBox1" VerticalAlignment="Top" Width="162" Opacity="1" BorderBrush="Black">
            <TextBox.Background>
                <SolidColorBrush />
            </TextBox.Background>
        </TextBox>
        <Label Content="密码:" Height="28" HorizontalAlignment="Left" Margin="68,67,0,0" Name="label2" VerticalAlignment="Top" />
        <PasswordBox Height="22" HorizontalAlignment="Left" Margin="120,71,0,0" Name="passwordBox1" VerticalAlignment="Top" Width="162" BorderBrush="Black">
            <PasswordBox.Background>
                <SolidColorBrush />
            </PasswordBox.Background>
        </PasswordBox>
        <Label Content="验证码:" Height="28" HorizontalAlignment="Left" Margin="56,109,0,0" Name="label3" VerticalAlignment="Top" />
        <TextBox Height="22" HorizontalAlignment="Left" Margin="121,112,0,0" Name="textBox2" VerticalAlignment="Top" Width="112" BorderBrush="Black">
            <TextBox.Background>
                <SolidColorBrush />
            </TextBox.Background>
        </TextBox>
        <Image Height="39" HorizontalAlignment="Left" Margin="245,105,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="181" />
        <Button Content="登录" Height="23" HorizontalAlignment="Left" Margin="177,228,0,0" Name="button1" VerticalAlignment="Top" Width="88" Click="button1_Click" />
        <Button Content="注册豆瓣账号" Height="23" HorizontalAlignment="Left" Margin="366,228,0,0" Name="button3" VerticalAlignment="Top" Width="134" Click="button3_Click" />
        <Label Content="豆瓣账户登录" Height="47" HorizontalAlignment="Left" Margin="333,12,0,0" Name="label5" VerticalAlignment="Top" Style="{StaticResource GradLabel}" Width="118" FontSize="18" />
        <Label Content="正在加载验证码,请稍后..." Height="40" HorizontalAlignment="Left" Margin="246,107,0,0" Name="label4" VerticalAlignment="Top" Width="180"  Cursor="Hand" ToolTip="点击刷新验证码" MouseLeftButtonDown="label4_MouseLeftButtonDown" />
        <Label Content="下次自动登录" Height="28" HorizontalAlignment="Left" Margin="63,152,0,0" Name="label6" VerticalAlignment="Top" Width="93" />
        <my:DefCheckBox HorizontalAlignment="Left" Margin="153,152,0,0" x:Name="defCheckBox1" VerticalAlignment="Top" />
        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="169,188,0,0" Name="label7" VerticalAlignment="Top" Width="158" Foreground="Red" />
        <Label Content="记住账户" Height="28" HorizontalAlignment="Left" Margin="275,154,0,0" Name="label8" VerticalAlignment="Top" />
        <my:DefCheckBox HorizontalAlignment="Left" Margin="342,151,0,0" x:Name="defCheckBox2" VerticalAlignment="Top" />
        <Grid.RenderTransform>
            <TransformGroup>
                <TranslateTransform x:Name="grid_translate"/>
            </TransformGroup>
        </Grid.RenderTransform>
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Grid.Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="grid_translate" Storyboard.TargetProperty="X" From="512" To="0" Duration="0:0:0.5"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Grid.Triggers>
    </Grid>
</UserControl>
